package com.gary;

import java.io.*;
import java.net.URL;

/**
 * @author pengrui
 * @date 2020/12/4 - 17:30
 */
public class GetUrl {

    public static void main(String[] args) throws IOException {
        URL url = new URL("http://www.netbian.com/dongman/index_4.htm");
        InputStream inputStream = url.openStream();
        BufferedReader reader = new BufferedReader(new InputStreamReader(inputStream));
        String line;
        while ((line = reader.readLine())!=null) {
            System.out.println(line);
        }

        reader.close();
    }
}
